#[doc = "Register `I2C_CTRL` reader"]
pub struct R(crate::R<I2C_CTRL_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<I2C_CTRL_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::convert::From<crate::R<I2C_CTRL_SPEC>> for R {
    fn from(reader: crate::R<I2C_CTRL_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `I2C_CTRL` writer"]
pub struct W(crate::W<I2C_CTRL_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<I2C_CTRL_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl core::convert::From<crate::W<I2C_CTRL_SPEC>> for W {
    fn from(writer: crate::W<I2C_CTRL_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "TX FIFO data completion interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_TXFIFO_OVER_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_TXFIFO_OVER_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_TXFIFO_OVER_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_txfifo_over_mask` reader - TX FIFO data completion interrupt mask."]
pub struct INT_TXFIFO_OVER_MASK_R(crate::FieldReader<bool, INT_TXFIFO_OVER_MASK_A>);
impl INT_TXFIFO_OVER_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_TXFIFO_OVER_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_TXFIFO_OVER_MASK_A {
        match self.bits {
            false => INT_TXFIFO_OVER_MASK_A::ENABLED,
            true => INT_TXFIFO_OVER_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_TXFIFO_OVER_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_TXFIFO_OVER_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_TXFIFO_OVER_MASK_R {
    type Target = crate::FieldReader<bool, INT_TXFIFO_OVER_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_txfifo_over_mask` writer - TX FIFO data completion interrupt mask."]
pub struct INT_TXFIFO_OVER_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_TXFIFO_OVER_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_TXFIFO_OVER_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_TXFIFO_OVER_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_TXFIFO_OVER_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
        self.w
    }
}
#[doc = "I2C operating mode select.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MODE_CTRL_A {
    #[doc = "0: The FIFO transmission mode is not used."]
    NOT_USED = 0,
    #[doc = "1: The FIFO transmission mode is used."]
    USED = 1,
}
impl From<MODE_CTRL_A> for bool {
    #[inline(always)]
    fn from(variant: MODE_CTRL_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `mode_ctrl` reader - I2C operating mode select."]
pub struct MODE_CTRL_R(crate::FieldReader<bool, MODE_CTRL_A>);
impl MODE_CTRL_R {
    pub(crate) fn new(bits: bool) -> Self {
        MODE_CTRL_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MODE_CTRL_A {
        match self.bits {
            false => MODE_CTRL_A::NOT_USED,
            true => MODE_CTRL_A::USED,
        }
    }
    #[doc = "Checks if the value of the field is `NOT_USED`"]
    #[inline(always)]
    pub fn is_not_used(&self) -> bool {
        **self == MODE_CTRL_A::NOT_USED
    }
    #[doc = "Checks if the value of the field is `USED`"]
    #[inline(always)]
    pub fn is_used(&self) -> bool {
        **self == MODE_CTRL_A::USED
    }
}
impl core::ops::Deref for MODE_CTRL_R {
    type Target = crate::FieldReader<bool, MODE_CTRL_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `mode_ctrl` writer - I2C operating mode select."]
pub struct MODE_CTRL_W<'a> {
    w: &'a mut W,
}
impl<'a> MODE_CTRL_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: MODE_CTRL_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "The FIFO transmission mode is not used."]
    #[inline(always)]
    pub fn not_used(self) -> &'a mut W {
        self.variant(MODE_CTRL_A::NOT_USED)
    }
    #[doc = "The FIFO transmission mode is used."]
    #[inline(always)]
    pub fn used(self) -> &'a mut W {
        self.variant(MODE_CTRL_A::USED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
        self.w
    }
}
#[doc = "TX FIFO overflow interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_TXTIDE_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_TXTIDE_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_TXTIDE_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_txtide_mask` reader - TX FIFO overflow interrupt mask."]
pub struct INT_TXTIDE_MASK_R(crate::FieldReader<bool, INT_TXTIDE_MASK_A>);
impl INT_TXTIDE_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_TXTIDE_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_TXTIDE_MASK_A {
        match self.bits {
            false => INT_TXTIDE_MASK_A::ENABLED,
            true => INT_TXTIDE_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_TXTIDE_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_TXTIDE_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_TXTIDE_MASK_R {
    type Target = crate::FieldReader<bool, INT_TXTIDE_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_txtide_mask` writer - TX FIFO overflow interrupt mask."]
pub struct INT_TXTIDE_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_TXTIDE_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_TXTIDE_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_TXTIDE_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_TXTIDE_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
        self.w
    }
}
#[doc = "RX FIFO overflow interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_RXTIDE_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_RXTIDE_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_RXTIDE_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_rxtide_mask` reader - RX FIFO overflow interrupt mask."]
pub struct INT_RXTIDE_MASK_R(crate::FieldReader<bool, INT_RXTIDE_MASK_A>);
impl INT_RXTIDE_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_RXTIDE_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_RXTIDE_MASK_A {
        match self.bits {
            false => INT_RXTIDE_MASK_A::ENABLED,
            true => INT_RXTIDE_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_RXTIDE_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_RXTIDE_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_RXTIDE_MASK_R {
    type Target = crate::FieldReader<bool, INT_RXTIDE_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_rxtide_mask` writer - RX FIFO overflow interrupt mask."]
pub struct INT_RXTIDE_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_RXTIDE_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_RXTIDE_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_RXTIDE_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_RXTIDE_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
        self.w
    }
}
#[doc = "I2C enable.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum I2C_EN_A {
    #[doc = "0: disabled."]
    DISABLED = 0,
    #[doc = "1: enabled."]
    ENABLED = 1,
}
impl From<I2C_EN_A> for bool {
    #[inline(always)]
    fn from(variant: I2C_EN_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `i2c_en` reader - I2C enable."]
pub struct I2C_EN_R(crate::FieldReader<bool, I2C_EN_A>);
impl I2C_EN_R {
    pub(crate) fn new(bits: bool) -> Self {
        I2C_EN_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> I2C_EN_A {
        match self.bits {
            false => I2C_EN_A::DISABLED,
            true => I2C_EN_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == I2C_EN_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == I2C_EN_A::ENABLED
    }
}
impl core::ops::Deref for I2C_EN_R {
    type Target = crate::FieldReader<bool, I2C_EN_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `i2c_en` writer - I2C enable."]
pub struct I2C_EN_W<'a> {
    w: &'a mut W,
}
impl<'a> I2C_EN_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: I2C_EN_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(I2C_EN_A::DISABLED)
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(I2C_EN_A::ENABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
        self.w
    }
}
#[doc = "General I2C interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_mask` reader - General I2C interrupt mask."]
pub struct INT_MASK_R(crate::FieldReader<bool, INT_MASK_A>);
impl INT_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_MASK_A {
        match self.bits {
            false => INT_MASK_A::ENABLED,
            true => INT_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_MASK_R {
    type Target = crate::FieldReader<bool, INT_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_mask` writer - General I2C interrupt mask."]
pub struct INT_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
        self.w
    }
}
#[doc = "TX completion interrupt mask for the start condition of the master.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_START_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_START_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_START_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_start_mask` reader - TX completion interrupt mask for the start condition of the master."]
pub struct INT_START_MASK_R(crate::FieldReader<bool, INT_START_MASK_A>);
impl INT_START_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_START_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_START_MASK_A {
        match self.bits {
            false => INT_START_MASK_A::ENABLED,
            true => INT_START_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_START_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_START_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_START_MASK_R {
    type Target = crate::FieldReader<bool, INT_START_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_start_mask` writer - TX completion interrupt mask for the start condition of the master."]
pub struct INT_START_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_START_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_START_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_START_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_START_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
        self.w
    }
}
#[doc = "TX completion interrupt mask for the stop condition of the master.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_STOP_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_STOP_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_STOP_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_stop_mask` reader - TX completion interrupt mask for the stop condition of the master."]
pub struct INT_STOP_MASK_R(crate::FieldReader<bool, INT_STOP_MASK_A>);
impl INT_STOP_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_STOP_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_STOP_MASK_A {
        match self.bits {
            false => INT_STOP_MASK_A::ENABLED,
            true => INT_STOP_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_STOP_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_STOP_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_STOP_MASK_R {
    type Target = crate::FieldReader<bool, INT_STOP_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_stop_mask` writer - TX completion interrupt mask for the stop condition of the master."]
pub struct INT_STOP_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_STOP_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_STOP_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_STOP_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_STOP_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
        self.w
    }
}
#[doc = "Master TX interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_TX_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_TX_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_TX_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_tx_mask` reader - Master TX interrupt mask."]
pub struct INT_TX_MASK_R(crate::FieldReader<bool, INT_TX_MASK_A>);
impl INT_TX_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_TX_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_TX_MASK_A {
        match self.bits {
            false => INT_TX_MASK_A::ENABLED,
            true => INT_TX_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_TX_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_TX_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_TX_MASK_R {
    type Target = crate::FieldReader<bool, INT_TX_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_tx_mask` writer - Master TX interrupt mask."]
pub struct INT_TX_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_TX_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_TX_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_TX_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_TX_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
        self.w
    }
}
#[doc = "Master RX interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_RX_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_RX_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_RX_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_rx_mask` reader - Master RX interrupt mask."]
pub struct INT_RX_MASK_R(crate::FieldReader<bool, INT_RX_MASK_A>);
impl INT_RX_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_RX_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_RX_MASK_A {
        match self.bits {
            false => INT_RX_MASK_A::ENABLED,
            true => INT_RX_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_RX_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_RX_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_RX_MASK_R {
    type Target = crate::FieldReader<bool, INT_RX_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_rx_mask` writer - Master RX interrupt mask."]
pub struct INT_RX_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_RX_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_RX_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_RX_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_RX_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
        self.w
    }
}
#[doc = "Slave ACK error interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_ACK_ERR_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_ACK_ERR_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_ACK_ERR_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_ack_err_mask` reader - Slave ACK error interrupt mask."]
pub struct INT_ACK_ERR_MASK_R(crate::FieldReader<bool, INT_ACK_ERR_MASK_A>);
impl INT_ACK_ERR_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_ACK_ERR_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_ACK_ERR_MASK_A {
        match self.bits {
            false => INT_ACK_ERR_MASK_A::ENABLED,
            true => INT_ACK_ERR_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_ACK_ERR_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_ACK_ERR_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_ACK_ERR_MASK_R {
    type Target = crate::FieldReader<bool, INT_ACK_ERR_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_ack_err_mask` writer - Slave ACK error interrupt mask."]
pub struct INT_ACK_ERR_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_ACK_ERR_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_ACK_ERR_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_ACK_ERR_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_ACK_ERR_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
        self.w
    }
}
#[doc = "Bus arbitration failure interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_ARB_LOSS_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_ARB_LOSS_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_ARB_LOSS_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_arb_loss_mask` reader - Bus arbitration failure interrupt mask."]
pub struct INT_ARB_LOSS_MASK_R(crate::FieldReader<bool, INT_ARB_LOSS_MASK_A>);
impl INT_ARB_LOSS_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_ARB_LOSS_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_ARB_LOSS_MASK_A {
        match self.bits {
            false => INT_ARB_LOSS_MASK_A::ENABLED,
            true => INT_ARB_LOSS_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_ARB_LOSS_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_ARB_LOSS_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_ARB_LOSS_MASK_R {
    type Target = crate::FieldReader<bool, INT_ARB_LOSS_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_arb_loss_mask` writer - Bus arbitration failure interrupt mask."]
pub struct INT_ARB_LOSS_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_ARB_LOSS_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_ARB_LOSS_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_ARB_LOSS_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_ARB_LOSS_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
        self.w
    }
}
#[doc = "Bus transfer completion interrupt mask.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INT_DONE_MASK_A {
    #[doc = "0: enabled."]
    ENABLED = 0,
    #[doc = "1: disabled."]
    DISABLED = 1,
}
impl From<INT_DONE_MASK_A> for bool {
    #[inline(always)]
    fn from(variant: INT_DONE_MASK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `int_done_mask` reader - Bus transfer completion interrupt mask."]
pub struct INT_DONE_MASK_R(crate::FieldReader<bool, INT_DONE_MASK_A>);
impl INT_DONE_MASK_R {
    pub(crate) fn new(bits: bool) -> Self {
        INT_DONE_MASK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INT_DONE_MASK_A {
        match self.bits {
            false => INT_DONE_MASK_A::ENABLED,
            true => INT_DONE_MASK_A::DISABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == INT_DONE_MASK_A::ENABLED
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == INT_DONE_MASK_A::DISABLED
    }
}
impl core::ops::Deref for INT_DONE_MASK_R {
    type Target = crate::FieldReader<bool, INT_DONE_MASK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `int_done_mask` writer - Bus transfer completion interrupt mask."]
pub struct INT_DONE_MASK_W<'a> {
    w: &'a mut W,
}
impl<'a> INT_DONE_MASK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: INT_DONE_MASK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(INT_DONE_MASK_A::ENABLED)
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(INT_DONE_MASK_A::DISABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
        self.w
    }
}
impl R {
    #[doc = "Bit 12 - TX FIFO data completion interrupt mask."]
    #[inline(always)]
    pub fn int_txfifo_over_mask(&self) -> INT_TXFIFO_OVER_MASK_R {
        INT_TXFIFO_OVER_MASK_R::new(((self.bits >> 12) & 0x01) != 0)
    }
    #[doc = "Bit 11 - I2C operating mode select."]
    #[inline(always)]
    pub fn mode_ctrl(&self) -> MODE_CTRL_R {
        MODE_CTRL_R::new(((self.bits >> 11) & 0x01) != 0)
    }
    #[doc = "Bit 10 - TX FIFO overflow interrupt mask."]
    #[inline(always)]
    pub fn int_txtide_mask(&self) -> INT_TXTIDE_MASK_R {
        INT_TXTIDE_MASK_R::new(((self.bits >> 10) & 0x01) != 0)
    }
    #[doc = "Bit 9 - RX FIFO overflow interrupt mask."]
    #[inline(always)]
    pub fn int_rxtide_mask(&self) -> INT_RXTIDE_MASK_R {
        INT_RXTIDE_MASK_R::new(((self.bits >> 9) & 0x01) != 0)
    }
    #[doc = "Bit 8 - I2C enable."]
    #[inline(always)]
    pub fn i2c_en(&self) -> I2C_EN_R {
        I2C_EN_R::new(((self.bits >> 8) & 0x01) != 0)
    }
    #[doc = "Bit 7 - General I2C interrupt mask."]
    #[inline(always)]
    pub fn int_mask(&self) -> INT_MASK_R {
        INT_MASK_R::new(((self.bits >> 7) & 0x01) != 0)
    }
    #[doc = "Bit 6 - TX completion interrupt mask for the start condition of the master."]
    #[inline(always)]
    pub fn int_start_mask(&self) -> INT_START_MASK_R {
        INT_START_MASK_R::new(((self.bits >> 6) & 0x01) != 0)
    }
    #[doc = "Bit 5 - TX completion interrupt mask for the stop condition of the master."]
    #[inline(always)]
    pub fn int_stop_mask(&self) -> INT_STOP_MASK_R {
        INT_STOP_MASK_R::new(((self.bits >> 5) & 0x01) != 0)
    }
    #[doc = "Bit 4 - Master TX interrupt mask."]
    #[inline(always)]
    pub fn int_tx_mask(&self) -> INT_TX_MASK_R {
        INT_TX_MASK_R::new(((self.bits >> 4) & 0x01) != 0)
    }
    #[doc = "Bit 3 - Master RX interrupt mask."]
    #[inline(always)]
    pub fn int_rx_mask(&self) -> INT_RX_MASK_R {
        INT_RX_MASK_R::new(((self.bits >> 3) & 0x01) != 0)
    }
    #[doc = "Bit 2 - Slave ACK error interrupt mask."]
    #[inline(always)]
    pub fn int_ack_err_mask(&self) -> INT_ACK_ERR_MASK_R {
        INT_ACK_ERR_MASK_R::new(((self.bits >> 2) & 0x01) != 0)
    }
    #[doc = "Bit 1 - Bus arbitration failure interrupt mask."]
    #[inline(always)]
    pub fn int_arb_loss_mask(&self) -> INT_ARB_LOSS_MASK_R {
        INT_ARB_LOSS_MASK_R::new(((self.bits >> 1) & 0x01) != 0)
    }
    #[doc = "Bit 0 - Bus transfer completion interrupt mask."]
    #[inline(always)]
    pub fn int_done_mask(&self) -> INT_DONE_MASK_R {
        INT_DONE_MASK_R::new((self.bits & 0x01) != 0)
    }
}
impl W {
    #[doc = "Bit 12 - TX FIFO data completion interrupt mask."]
    #[inline(always)]
    pub fn int_txfifo_over_mask(&mut self) -> INT_TXFIFO_OVER_MASK_W {
        INT_TXFIFO_OVER_MASK_W { w: self }
    }
    #[doc = "Bit 11 - I2C operating mode select."]
    #[inline(always)]
    pub fn mode_ctrl(&mut self) -> MODE_CTRL_W {
        MODE_CTRL_W { w: self }
    }
    #[doc = "Bit 10 - TX FIFO overflow interrupt mask."]
    #[inline(always)]
    pub fn int_txtide_mask(&mut self) -> INT_TXTIDE_MASK_W {
        INT_TXTIDE_MASK_W { w: self }
    }
    #[doc = "Bit 9 - RX FIFO overflow interrupt mask."]
    #[inline(always)]
    pub fn int_rxtide_mask(&mut self) -> INT_RXTIDE_MASK_W {
        INT_RXTIDE_MASK_W { w: self }
    }
    #[doc = "Bit 8 - I2C enable."]
    #[inline(always)]
    pub fn i2c_en(&mut self) -> I2C_EN_W {
        I2C_EN_W { w: self }
    }
    #[doc = "Bit 7 - General I2C interrupt mask."]
    #[inline(always)]
    pub fn int_mask(&mut self) -> INT_MASK_W {
        INT_MASK_W { w: self }
    }
    #[doc = "Bit 6 - TX completion interrupt mask for the start condition of the master."]
    #[inline(always)]
    pub fn int_start_mask(&mut self) -> INT_START_MASK_W {
        INT_START_MASK_W { w: self }
    }
    #[doc = "Bit 5 - TX completion interrupt mask for the stop condition of the master."]
    #[inline(always)]
    pub fn int_stop_mask(&mut self) -> INT_STOP_MASK_W {
        INT_STOP_MASK_W { w: self }
    }
    #[doc = "Bit 4 - Master TX interrupt mask."]
    #[inline(always)]
    pub fn int_tx_mask(&mut self) -> INT_TX_MASK_W {
        INT_TX_MASK_W { w: self }
    }
    #[doc = "Bit 3 - Master RX interrupt mask."]
    #[inline(always)]
    pub fn int_rx_mask(&mut self) -> INT_RX_MASK_W {
        INT_RX_MASK_W { w: self }
    }
    #[doc = "Bit 2 - Slave ACK error interrupt mask."]
    #[inline(always)]
    pub fn int_ack_err_mask(&mut self) -> INT_ACK_ERR_MASK_W {
        INT_ACK_ERR_MASK_W { w: self }
    }
    #[doc = "Bit 1 - Bus arbitration failure interrupt mask."]
    #[inline(always)]
    pub fn int_arb_loss_mask(&mut self) -> INT_ARB_LOSS_MASK_W {
        INT_ARB_LOSS_MASK_W { w: self }
    }
    #[doc = "Bit 0 - Bus transfer completion interrupt mask."]
    #[inline(always)]
    pub fn int_done_mask(&mut self) -> INT_DONE_MASK_W {
        INT_DONE_MASK_W { w: self }
    }
    #[doc = "Writes raw bits to the register."]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "I2C_CTRL is the I2C control register, used to enable I2C peripheral and mask interrupts.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [i2c_ctrl](index.html) module"]
pub struct I2C_CTRL_SPEC;
impl crate::RegisterSpec for I2C_CTRL_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [i2c_ctrl::R](R) reader structure"]
impl crate::Readable for I2C_CTRL_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [i2c_ctrl::W](W) writer structure"]
impl crate::Writable for I2C_CTRL_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets I2C_CTRL to value 0"]
impl crate::Resettable for I2C_CTRL_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}
